//
//  HJVideoBottomView.h
//  HJVideoPlayer
//
//  Created by WHJ on 16/10/17.
//  Copyright © 2016年 WHJ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HJVideoPlayManager.h"
#import "HJBufferSlider.h"
#import "HJVideoTimeUtil.h"
#import "HJVideoPlayerHeader.h"
#import "HJVideoConst.h"
#import "HJVideoConfigModel.h"
#import "HJViewFactory.h"



typedef void(^videoPlayerFullScreenBlock)(BOOL isFull);
typedef void(^videoPlayerSliderValueChanged)(float value);

@class HJVideoConfigModel;
@interface HJVideoBottomView : UIView

/** 进度*/
@property (nonatomic, assign ,readonly) CGFloat progressValue;
/** 缓冲进度*/
@property (nonatomic, assign ,readonly) CGFloat bufferValue;
/** 最大进度 */
@property (nonatomic, assign ,readonly) CGFloat maximumValue;
/** 大小屏切换回调*/
@property (nonatomic, copy) videoPlayerFullScreenBlock fullScreenBlock;
/** 进度条拖动回调*/
@property (nonatomic, copy) videoPlayerSliderValueChanged valueChangedBlock;
///** 是否仅显示slider */
//@property (nonatomic, assign, readonly) BOOL onlySlider;

@property (nonatomic, strong) HJVideoConfigModel *configModel;

//////////////////////////////////////////
/** 全屏按钮 */
@property (nonatomic ,strong) UIButton *fullScreenBtn;
/** 播放时长Label */
@property (nonatomic ,strong) UILabel *playTimeLbl;
/** 总时长Label */
@property (nonatomic ,strong) UILabel *totalDurationLbl;
/** 缓冲进度条 */
@property (nonatomic, strong) HJBufferSlider *bufferSlider;
/** 是否仅显示slider */
@property (nonatomic, assign) BOOL onlySlider;
/** 是否全屏 */
@property (nonatomic, assign) BOOL fullScreen;

/** 渐变layer */
@property (nonatomic, strong) CAGradientLayer* gradientLayer;


// 显示底部视图
- (void)show;

// 隐藏底部视图
- (void)hide;

// 设置进度
- (void)setProgress:(CGFloat)progressValue;

// 设置缓冲进度
- (void)setBufferValue:(CGFloat)bufferValue;

// 设置最大进度
- (void)setMaximumValue:(CGFloat)value;


@end
